package com.wlz.basic.generics;

import java.math.BigDecimal;

/**
 *  泛型
 * @author wlz
 * @date 2022-08-01  8:37 下午
 */
public class Main {

    public static void main(String[] args) {

        WlzList<BigDecimal> wlzList = new WlzList<>();
        wlzList.add(new BigDecimal(11));

        WlzList wlzList1 = new WlzList<>();
        wlzList1.add(new Integer(11));
        wlzList1.add(1);

        System.out.println(wlzList.getClass());
        System.out.println(wlzList.getClass().equals(wlzList1.getClass()));

    }
}
